<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#"	xmlns:fb="https://www.facebook.com/2008/fbml">
 <meta property="fb:app_id" content="<?php echo FB_ID ?>"><meta property="fb:admins" content="100005963825028" />   
<head>
<BASE href="<?= HOME; ?>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="keywords"	content="<?php echo2($data[keyword]); ?>" />
<meta name="description"	content="<?php  echo $data[mota]; ?>" />
<title><?php echo $data[title]; ?></title>
<link rel="icon" type="image/jpg" href="favicon.jpg" />
<?php if($data['og']){ 	echo $data['og'];}?>
<link rel="stylesheet" type="text/css" href="<?= HOME ?>public/exts/css/jRating.jquery.css" media="screen" />
<link href="<?= HOME ?>public/bootstrap/css/bootstrap.css"	rel="stylesheet">
<link href="<?= HOME ?>public/font-awesome/css/font-awesome.css"	rel="stylesheet" type="text/css" />
<link href="<?= HOME ?>public/exts/css/theme.css" rel="stylesheet" />
<link href="<?= HOME ?>public/exts/css/general.css" rel="stylesheet"	type="text/css" />
<link rel="stylesheet" href="<?= HOME ?>public/exts/css/select2.css"	type="text/css" />
<link href="<?= HOME ?>public/exts/css/bootflat-extensions.css"	rel="stylesheet" />
<link href="<?= HOME ?>public/exts/css/anime.css"	rel="stylesheet" />


<?php if($_SESSION['mobile']!=0){?>
<link rel='stylesheet' href='public/exts/nav/css/icomoon.css'	type='text/css' media='all'>
<link rel='stylesheet'	href='public/exts/nav/css/jquery.mCustomScrollbar.css' type='text/css'	media='all'>
<link rel='stylesheet' href='public/exts/nav/css/orange.css'	type='text/css' media='screen'>

<?php }?>
<!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
<script type="text/javascript" language="javascript" src="<?= HOME ?>public/exts/js/jquery-1.7.1.min.js"></script>

<script type="text/javascript" src="<?php echo BASE_URL; ?>public/js/cookie.js"></script>
<script type="text/javascript" language="javascript"	src="<?= HOME ?>public/exts/js/lazy.js"></script>
<script type="text/javascript">var baseUrl = '<?= HOME; ?>';</script>

<?php if($_GET['act']!='episode'){?>
<style>
.wrapMain{background: url( "public/images/gp-body.gif") left top; color:#000;) !important;
border: none;}
</style>
<?php }else{?>
<style>
.breadcrumb{ background-color:none; border-radius:0px; color:#fff; font-weight:bold}
.breadcrumb a{ color:#FFF}
.notify { text-align:center}
.notify a{ font-weight:bold; color:#FFF}
.notify a:hover{ color: #F30}
.chap_info{ background-color:#fafafa}
</style>
<?php }?>

<script type="text/javascript">if(top != self) top.location.replace(location);</script>

</head>
<body >
	<div id="fb-root"></div>
	<script type="text/javascript">
  // prevent jQuery from appending cache busting string to the end of the FeatureLoader URL 
  var cache = jQuery.ajaxSettings.cache; 
  jQuery.ajaxSettings.cache = true;
  // Load FeatureLoader asynchronously. Once loaded, we execute Facebook init 
  jQuery.getScript('http://connect.facebook.net/vi_VN/all.js', function() {      
    FB.init({appId: '<?php echo FB_ID;?>', status: true, cookie: true, xfbml: true});    
  });
  // just Restore jQuery caching setting
  jQuery.ajaxSettings.cache = cache;
</script>
	<div id="wrapAll">
		<?php if($_SESSION['mobile']==0){ ?>
		<nav class="navbar navbar-inverse " role="navigation">
			<!-- Brand and toggle get grouped for better mobile display -->
			<div class="navbar-header ">
				<button type="button" class="navbar-toggle navbar-left"
					data-toggle="collapse" data-target=".navbar-ex1-collapse">
				<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span	class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="<?php echo HOME ?>"> <!--	<img src="<?php echo HOME; ?>public/images/logo.png" height="45px" /> -->
					<i class="fa fa-home"></i> Manga24h.com
				</a>
			</div>
			<!-- end .navbar-header -->
			<!-- Collect the nav links, forms, and other content for toggling -->
			<div class="collapse navbar-collapse navbar-ex1-collapse yamm">
				<ul class="nav navbar-nav">
					<li><a href="<?php echo HOME."danhsach" ?>">Danh Sách </a></li>
					<li><a href="<?php echo HOME."theloai" ?>">Thể Loại </a></li>
                    
                       
                       <li><a href="<?php echo HOME;?>history" class="show_story_history"> Theo Dõi</a></li>
					  <li><a href="http://mong.vn/truyen"> Truyện Chữ </a></li>  
                    <li><a href="http://anime24h.vn"><img src="http://mong.vn/public/images/new.gif" alt="Xem Anime Online"><b> Xem Anime  </b></a></li>  
		
                	<li style="width:250px; padding-top:7px"><?php   render_fanpage(); ?></li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
					<?php
					if(isset($_SESSION['user'])){
					//inbox();
					}
					if($_SESSION['user']['level']==1 || $_SESSION['level']==2|| $_SESSION['level']==3){
					static_admin();
					}?>
				<li class="upload_mn"><a href="<?PHP echo  UPLOAD ?>"><i class="fa fa-cloud-upload"></i> UPLOAD</a></li>
					<?php if(!isset($_SESSION['user'])){ ?>
					<li class="dropdown"><a href="#" class="dropdown-toggle"		data-toggle="dropdown"><i class="fa fa-user"></i> User <b	class="caret"></b> </a>
						<ul class="dropdown-menu">
                        					<li><a href="<?php echo REGISTER ?>">Đăng Ký Tài Khoản</a></li>
											<li><a href="<?php echo LOGIN ?>">Đăng Nhập </a></li>
						</ul>

					</li>

					<?php }else{ // ISSET SESSION USER ---

					?>
					<li class="dropdown"><a href="#" class="dropdown-toggle"	data-toggle="dropdown"><i class="fa fa-user"></i> <?php echo show_username($_SESSION['user']['username'],$_SESSION['user']['name']);?>
							<b class="caret"></b> </a>
						<ul class="dropdown-menu">
							<li role="presentation" class="dropdown-header">Tài Khoản</li>
							<li><a href="<?php echo USER_INFO;?>">Thông Tin</a></li>
							<li><a href="<?php echo USER_CHANGEPASSWORD; ?>">Thay đổi mật khẩu</a></li>
							<li><a	href="<?php echo HOME;?>history">Theo Dõi Manga</a></li>
					<li role="presentation" class="divider"></li>
				
							<li role="presentation" class="dropdown-header">Quản Lý Nội Dung</li>			
                          	<li><a	href="<?php echo HOME ?>index.php?module=user&act=anime&type=anime">Manga</a>	</li>
							<li><a	href="<?php echo HOME ?>index.php?module=user&act=post&type=text">Blog</a>	</li>
							<li role="presentation" class="divider"></li>
							
							
							
							<li><a href="<?php echo LOGOUT ?>"><span				class="glyphicon glyphicon-log-out"></span> Thoát</a></li>
						</ul>
					</li>
					<?php } ?>
				</ul>
	</div>
		<!-- /.navbar-collapse -->
		</nav>
        
           <div style="width:950px; margin:auto">
           <ul class="nav nav-pills smenu"><li><a href="<?php echo HOME;?>status/new.html">Manga Mới</a></li><li><a href="<?php echo HOME;?>status/hot.html">Manga Hot</a></li><li><a href="<?php echo HOME;?>Shounen.html">Shounen</a></li><li><a href="<?php echo HOME;?>Shoujo.html">Shoujo - Con gái</a></li><li><a href="<?php echo HOME;?>Romance.html">Romance - Tình Cảm</a></li><li><a href="<?php echo HOME;?>Manhua.html">Manhua</a></li><li><a href="<?php echo HOME;?>Manhwa.html">Manhwa</a></li>    <li><a href="<?php echo HOME;?>School-life.html">School life -Học Đường</a></li><li><a href="<?php echo HOME;?>Action.html">Action</a></li><li><a href="http://anime24h.vn">Xem Anime &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></li></ul>
           </div>
           <style>
           .smenu > li >a{ border-radius:0px; padding:5px; background-color:#2980b9; color:#FFF}
		   .navbar {  margin-bottom:0px;}
           </style>

	
    
    
    <?php 
	if($_GET['act']!='episode'){?>

                                <div style="width:950px; margin:auto">
   
                            <a href="http://ghengoibet.vn/gioi-thieu-san-pham-ghe-ngoi-bet" target="_blank" title="ghế ngồi bệt, ghế ngồi bệt đa năng" ><img   src="http://image.manga24h.com/upload/images/2014/10/03/manga24h-ghe-ngoi-bet-tatami-ori.jpg" class="lazy" width="950" height="100"></a>
                            </div>
                            
                            
                              
                            
       <?php }else{
		   // View chapter
		   ?>    <Br/>
       <div style="width:955px; margin:auto">
    <iframe width="950px" height="95px" scrolling="0" frameborder="0" style="overflow:hidden;" src="http://api.adtimaserver.vn/rdext/html?zoneId=2303836524119546432"></iframe>
    </div>



	 
     
<!-- End of cpm star -->

       <?php }?>                 
    
		<?php

		//$_session mobile ==0
				 }else {?>
		<!-- START MENU -->
        <style>
        .css3aw-theme-dark { position:relative}
        </style>
		<header class="css3aw-theme-dark">
			<div id="css3aw-main-menu-wrapper">
				<div id="css3aw-menu-trigger-icon">
					<span class="css3aw-menu-dash"></span> <span
						class="css3aw-menu-dash"></span> <span class="css3aw-menu-dash"></span>
				</div>
				<div id="css3aw-main-menu-container">
					<ul id="css3aw-menu">
						<li><a href="<?php echo HOME ?>"><span aria-hidden="true"	class="icon-home"></span>HOME</a></li>
						<li class="css3aw-has-submenu"><a href="<?php echo url(); ?>#"><span   aria-hidden="true" class="icon-book"></span>Manga</a>
					<ul>
						<?php echo get_list_theloai_truyen_mobi(); ?>
					</ul>
				</li>
						<li><a class="show_story_history"><span aria-hidden="true"	class="icon-stack"></span>Lịch Sử Đọc Truyện <span class="badge"><?php echo count($_COOKIE['tc']); ?>

							</span> </a></li>
						<li class="css3aw-has-submenu"><a			href="<?php echo url(); ?>#"><span   aria-hidden="true"	class="icon-film"></span>Video - Music</a>
							<ul>			<?php echo	get_list_category_video_mobi();?>		</ul>
						</li>
						<li class="css3aw-has-submenu"><a	href="<?php echo url(); ?>#"><span   aria-hidden="true"		class="icon-file"></span>Blog</a>
						<ul>		<?php echo get_list_category_blog_mobi();?>			</ul>
						</li>
					</ul>
				</div>
			</div>
			<h3	style="font-family: Arial, Helvetica, sans-serif; font-size: 14px">		<?php if(isset($_GET['module']) && $_GET['module']=='anime'){?>
					<a href="<?php echo HOME ?>"><i class="fa fa-home"></i> Manga24h.com</a>
				<?php }else
		 if(isset($_GET['module']) && $_GET['module']=='news' && $_GET['type']=='blog'){?>
				<a href="<?php echo HOME.'blog' ?>"> BLOG</a>
				<?php }else
		 if(isset($_GET['module']) && $_GET['module']=='news' && $_GET['type']=='video'){?>
				<a href="<?php echo HOME.'video' ?>"> Video - Music</a>
				<?php }else
	 		     {    ?>
				<a href="<?php echo HOME ?>"><i class="fa fa-home"></i> Manga24h.com</a>
				<?php }?>
			</h3>
		
		</header>
		<!-- End of Menu -->
		<div style="height: 50px"></div>
		<div style="height: 5px"></div>
        <div style="height: 5px"></div>
        <div style="max-width:950px; margin:auto">
		<input type="hidden" name="optionvalue" id="menu-search-box"
			class="input-medium" data-placeholder="Nhập Tên Manga ..." />
         </div>
		<div style="height: 15px"></div>

			
            <div style="max-width:950px; margin:auto">
             <div style="border: 1px solid #FFDAAF; background: #FFFCE9; padding: 10px;font-family: arial;" class="embed_box"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="width: 40px; padding-right:8px; padding-top: 2px"><a href="http://d.clix.vn/sonho/anhhungxadieu"><img align="absmiddle" width="40" border="0" src="https://static.mwork.vn/thumbs/unsafe/40x40/static.mwork.vn/data/images/apps/ahxd.png"></a></td><td valign="top" style="padding-bottom:5px;"><a style="color: #678B3B; text-decoration: none;" href="http://d.clix.vn/sonho/anhhungxadieu"><strong>Anh Hùng Xạ Điêu - MMO KOF Đầu Tiên Việt Nam</strong></a><div style="font-size: small;color: #4F4C47;" class="des_txt"><div>Dựa theo siêu phẩm kinh điển của Kim Dung, hệ thống nhân vật, đồ họa, bang phái đồ sộ, xuất sắc....</div></div><div class="link_holder" style="color: #CCC;"><a class="green_link_small" href="http://d.clix.vn/sonho/anhhungxadieu" style="font-size: small; text-decoration: none;">Tải miễn phí</a></div></td></tr></tbody></table>
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="width: 52px; padding-right:8px; padding-top: 2px"><a href="http://210.211.118.222/download/iwin"><img align="absmiddle" width="52" border="0" src="https://static.mwork.vn/v2/images/iwin.png"></a></td><td valign="top" style="padding-bottom:5px;"><a style="color: #678B3B; text-decoration: none;" href="http://210.211.118.222/download/iwin"><strong>iWin 291 HD </strong></a><div style="font-size: small;color: #4F4C47;" class="des_txt"><div>Game Bài đẳng cấp đã được chứng minh ....</div></div><div class="link_holder" style="color: #CCC;"><a class="green_link_small" href="http://210.211.118.222/download/iwin" style="font-size: small; text-decoration: none;">Tải miễn phí</a></div></td></tr></tbody></table></div>
</div>
			<br/>
            
         
		<?php }  ?>
		<div style="height: 5px"></div>